<?php /* @var $this Controller */ ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<meta name="language" content="en" />

	<!-- blueprint CSS framework -->
	<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/screen.css" media="screen, projection" />
	<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/print.css" media="print" />
	<!--[if lt IE 8]>
	<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/ie.css" media="screen, projection" />
	<![endif]-->

	<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/main.css" />
	<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/form.css" />
	<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/slider.css" />
	
	<link rel="shortcut icon" href="images/gtts.png" type="image/png"/>
	
	<!--Fonts!-->
	<link href='http://fonts.googleapis.com/css?family=Ubuntu+Condensed' rel='stylesheet' type='text/css'>
	
	<!--Images Slider!-->
	<!-- START NIVO SLIDER -->

	<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.5.1/jquery.min.js"></script>
        <script type="text/javascript" src="http://static.tumblr.com/y0x5xm1/WdCmcx05a/jquery.nivo.slider.pack.js"></script>
        <script type="text/javascript">
		var $nv4wp = jQuery.noConflict();
		$nv4wp(window).load(function() {
			$nv4wp('#slider').nivoSlider({
				effect:'random',
				slices:15, // For slice animations
				boxCols: 4, // For box animations
				boxRows: 2, // For box animations
				animSpeed:500, // Slide transition speed
				pauseTime:3000, // How long each slide will show
				startSlide:0, // Set starting Slide (0 index)
				directionNav:true, //Next & Prev
				controlNav:false, // 1,2,3... navigation
				controlNavThumbs:true, // Use thumbnails for Control Nav
				controlNavThumbsFromRel:false, // Use image rel for thumbs
				controlNavThumbsSearch: '.jpg', // Replace this with...
				controlNavThumbsReplace: '_thumb.jpg', // ...this in thumb Image src
				keyboardNav:true, //Use left & right arrows
				pauseOnHover:true, //Stop animation while hovering
				manualAdvance:false, //Force manual transitions
				captionOpacity:0.8, //Universal caption opacity
				prevText: 'Prev', // Prev directionNav text
				nextText: 'Next', // Next directionNav text
				beforeChange: function(){}, // Triggers before a slide transition
				afterChange: function(){}, // Triggers after a slide transition
				slideshowEnd: function(){}, // Triggers after all slides have been shown
				lastSlide: function(){}, // Triggers when last slide is shown
				afterLoad: function(){} // Triggers when slider has loaded
			});
		});
		</script>

    <script type="text/javascript" src="http://static.tumblr.com/y0x5xm1/e1gmcx29e/jquery.nivo.slider.js"></script>
    <script type="text/javascript">
    $(window).load(function() {
        $('#slider').nivoSlider();
    });
    </script>
<!-- END NIVO SLIDER -->

	<title><?php echo CHtml::encode($this->pageTitle); ?></title>
</head>

<body>

<div id="top"></div>
	
	<div id="header" align="center">
	   <img src="images/header.png">
	</div>
<div class="container" id="page">



        
		
<div id="topmenu">
		<?php $this->widget('zii.widgets.CMenu',array(
			'items'=>array(
				/* array('label'=>'Login', 'url'=>array('/site/login'), 'visible'=>Yii::app()->user->isGuest), */
				/* array('label'=>'Logout ('.Yii::app()->user->name.')', 'url'=>array('/site/logout'), 'visible'=>!Yii::app()->user->isGuest), */
				/* array('label'=>'Rights', 'url'=>array('/rights'), 'visible'=>!Yii::app()->user->isGuest && Yii::app()->user->name=="admin"),*/
				array('label'=>'Contact us', 'url'=>array('/site/contact')),
				array('url'=>Yii::app()->getModule('user')->loginUrl, 'label'=>Yii::app()->getModule('user')->t("Login"), 'visible'=>Yii::app()->user->isGuest),
				array('url'=>Yii::app()->getModule('user')->registrationUrl, 'label'=>Yii::app()->getModule('user')->t("Register"), 'visible'=>Yii::app()->user->isGuest),
				array('url'=>Yii::app()->getModule('user')->profileUrl, 'label'=>Yii::app()->getModule('user')->t("Profile"), 'visible'=>!Yii::app()->user->isGuest),
				array('url'=>Yii::app()->getModule('user')->logoutUrl, 'label'=>Yii::app()->getModule('user')->t("Logout").' ('.Yii::app()->user->name.')', 'visible'=>!Yii::app()->user->isGuest),
				
			),
		)); ?>
	</div><!-- topmenu -->

	<div id="menu-top">
	<?php
	$this->widget('zii.widgets.CMenu',array(
		'activeCssClass'=>'active',
		'activateParents'=>true,
		'items'=>array(
			array('label'=>'Home', 'url'=>array('/site/index')),
			array('label'=>'About Us', 'url'=>array('/site/page', 'view'=>'about')),
			array(
			  'label'=>'Packages',
			  'url'=>array('/site/page', 'view'=>'packages'),
			  'items'=>array(
				array('label'=>'Massage Packages', 'url'=>array('/site/page', 'view'=>'massagepackages')),
				array('label'=>'Tanning Packages', 'url'=>array('/site/page', 'view'=>'tanpackages')),
			  ),),
			array('label'=>'Lotions', 'url'=>array('/site/page', 'view'=>'lotions')),
			array('label'=>'Specials', 'url'=>array('/site/page', 'view'=>'specials')),
			array('label'=>'VIP', 'url'=>array('/site/page', 'view'=>'vip')),
			array('label'=>'Reserve a Product', 'url'=>array('/productReservation/create')),
			array('label'=>'Book Now', 'url'=>array('/appointment/create')),
			array(
			  'label'=>'CRUDS',
			  'url'=>array('/site/page', 'view'=>'cruds'),
			  'visible'=>(!Yii::app()->user->isGuest && Yii::app()->user->name=="admin"),
			  'items'=>array(
				array('label'=>'Customer VIP Membership', 'url'=>array('/customerVipMembership')),
				array('label'=>'Equipment', 'url'=>array('/equipment')),
				array('label'=>'Package Category', 'url'=>array('/packageCategory')),
				array('label'=>'Personnel', 'url'=>array('/personnel')),
				array('label'=>'Product', 'url'=>array('/product')),
				array('label'=>'Product Category', 'url'=>array('/productCategory')),
				array('label'=>'Service', 'url'=>array('/service')),
				array('label'=>'Supplier', 'url'=>array('/supplier')),
				array('label'=>'VIP Membership', 'url'=>array('/vipMembership')), 	
			  ),),

		),
	)); 
	?>
	</div>
	
	<?php if(isset($this->breadcrumbs)):?>
		<?php $this->widget('zii.widgets.CBreadcrumbs', array(
			'links'=>$this->breadcrumbs,
		)); ?><!-- breadcrumbs -->
	<?php endif?>
	
	<div id="content">

	<?php echo $content; ?>

	</div>


	<div class="clear"></div>

	<div id="footer">
	
	
		<div id="footerbox" align="center">	
		
		<div id="footermenu">
		<?php $this->widget('zii.widgets.CMenu',array(
			'items'=>array(
				array('label'=>'Home', 'url'=>array('/site/index')),
				array('label'=>'About Us', 'url'=>array('/site/page', 'view'=>'about')),
				array('label'=>'Massage Packages', 'url'=>array('/site/page', 'view'=>'massagepackages')),
				array('label'=>'Tanning Packages', 'url'=>array('/site/page', 'view'=>'tanpackages')),
				array('label'=>'Specials', 'url'=>array('/site/page', 'view'=>'specials')),
				array('label'=>'VIP', 'url'=>array('/site/page', 'view'=>'vip')),
				array('label'=>'Lotions', 'url'=>array('/site/page', 'view'=>'lotions')),
				
			),
		)); ?>
		</div> 
		
		  
		416 E. Ellsworth Midland, MI 48460        
		(989) 631-4TAN  (989) 631-4826 <br>
		Copyright &copy; <?php echo date('Y'); ?> by Go Totally Tan.
		All Rights Reserved.
		<?php echo Yii::powered(); ?>

		
		<div class="clear"></div>
		
		</div>
	</div><!-- footer -->

</div><!-- page -->

</body>
</html>
